package deviceinfo.wsm.com.deviceinfo.installpackage;

import java.util.LinkedHashMap;
import java.util.List;

import deviceinfo.wsm.com.deviceinfo.WsmDeviceInfoSDK;
import deviceinfo.wsm.com.deviceinfo.plugin.com.an.deviceinfo.userapps.UserAppInfo;
import deviceinfo.wsm.com.deviceinfo.plugin.com.an.deviceinfo.userapps.UserApps;

/**
 * Created by 王家宝 on 2018/7/9.
 * TEL:18241150668
 * MAIL:639586819@qq.com
 */

public class InstallPackageInfoUtils {

    public static LinkedHashMap<String, String> getAll() {
        UserAppInfo userAppInfo = new UserAppInfo(WsmDeviceInfoSDK.getWsmSDK().getAppContext());
        List<UserApps> userApps = userAppInfo.getInstalledApps(true);
        LinkedHashMap<String, String> data = new LinkedHashMap<>();
        data.put("已安装应用", userApps.toString());
        return data;
    }

}
